package com.business.student.service;


import com.business.common.core.domain.AjaxResult;
import com.business.exam.domain.ExamPaperAnswer;
import com.business.exam.domain.ExamPaperAnswerInfo;
import com.business.student.domain.ExamPaperAnswerPageVM;
import com.business.student.domain.ExamPaperSubmitVM;

import java.util.List;

public interface IExamPaperAnswerService {


    /**
     * 学生考试记录分页
     *
     * @param requestVM 过滤条件
     * @return PageInfo<ExamPaperAnswer>
     */

    List<ExamPaperAnswer> studentPage(ExamPaperAnswerPageVM requestVM);


    /**
     * 计算试卷提交结果(不入库)
     *
     * @param examPaperSubmitVM
     * @return
     */
    ExamPaperAnswerInfo calculateExamPaperAnswer(ExamPaperSubmitVM examPaperSubmitVM);


    /**
     * 根据ID查询数据
     *
     * @param id
     * @return
     */
    ExamPaperAnswer selectById(Integer id);

    /**
     * 试卷答题信息转成ViewModel 传给前台
     *
     * @param id 试卷id
     * @return ExamPaperSubmitVM
     */
    ExamPaperSubmitVM examPaperAnswerToVM(Integer id);

    /**
     * 学生考试记录分页(管理员)
     *
     * @param requestVM 过滤条件
     * @return PageInfo<ExamPaperAnswer>
     */

    List<ExamPaperAnswer> studentPageForAdmin(ExamPaperAnswerPageVM requestVM);


    /**
     * 获取用户考试
     * @return
     */
    AjaxResult findUserAnswerCount(String id);


    /**
     * 试卷批改
     *
     * @param examPaperSubmitVM examPaperSubmitVM
     * @return String
     *//*
    String judge(ExamPaperSubmitVM examPaperSubmitVM);
    Integer selectAllCount();
    List<Integer> selectMothCount();
    PageInfo<ExamPaperAnswer> adminPage(com.mindskip.xzs.viewmodel.admin.paper.ExamPaperAnswerPageRequestVM requestVM);*/
}
